<?php 
/*
	RamHook, log file upload script example
	Ramunas Geciauskas
*/

/*
	RamHook uses regular FORM/POST file uploading method.
*/

$upl_folder = ''; // Relative path where to put log file

if (is_uploaded_file($_FILES['file']['tmp_name'])) { 

   $uploadfile = $upl_folder . basename($_FILES['file']['name']);
   
   echo "File ". $_FILES['file']['name'] ." uploaded successfully. Now trying to move it...\n"; 
   
   if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) { 
          echo "File was moved successfully. All OK.\n"; 
   } 
   else {
		// something didn't work
		// debug:
        print_r($_FILES); 
	}
} 
else { 
  echo "Failed!!!";
  } 
?>